//1. 导入  create 创建  slice 切片    configure 配置  store 仓库
import {createSlice, configureStore} from '@reduxjs/toolkit';

//2. 导入 reducer 函数
import countReducer from './slices/countSlice';
import zanReducer from './slices/zanSlice';
import userReducer from './slices/userSlice';
import todoReducer from './slices/todoSlice';

//3. 配置仓库
let store = configureStore({
  reducer: {
    count: countReducer,
    zan: zanReducer,
    user: userReducer,
    todo: todoReducer
  }
});

//暴露 store
export default store;


